{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "import json, os, requests\n",
    "\n",
    "subscription_key = 'b8931d6775c14e6397c39b4108263550'\n",
    "assert subscription_key\n",
    "\n",
    "face_api_url = 'https://api-ljy.cognitiveservices.azure.com' + '/face/v1.0/detect'\n",
    "\n",
    "image_url = 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1603731574380&di=9d5233b575005640860151fa88551c55&imgtype=0&src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201708%2F27%2F20170827120515_XSsWt.jpeg'\n",
    "\n",
    "headers = {'Ocp-Apim-Subscription-Key': subscription_key}\n",
    "\n",
    "params = {\n",
    "    'detectionModel': 'detection_01',\n",
    "     'returnFaceAttributes': 'age,gender,headPose,smile,facialHair,glasses,emotion,hair,makeup,occlusion,accessories,blur,exposure,noise',\n",
    "    'returnFaceId': 'true'\n",
    "}\n",
    "\n",
    "response = requests.post(face_api_url, params=params,\n",
    "                         headers=headers, json={\"url\": image_url})\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "results=response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'faceId': '1157baec-5e4a-4e2b-a911-dc6a02582920',\n",
       "  'faceRectangle': {'top': 110, 'left': 143, 'width': 79, 'height': 79},\n",
       "  'faceAttributes': {'smile': 0.0,\n",
       "   'headPose': {'pitch': -5.2, 'roll': 10.5, 'yaw': 23.2},\n",
       "   'gender': 'male',\n",
       "   'age': 19.0,\n",
       "   'facialHair': {'moustache': 0.1, 'beard': 0.1, 'sideburns': 0.1},\n",
       "   'glasses': 'NoGlasses',\n",
       "   'emotion': {'anger': 0.0,\n",
       "    'contempt': 0.0,\n",
       "    'disgust': 0.0,\n",
       "    'fear': 0.0,\n",
       "    'happiness': 0.0,\n",
       "    'neutral': 0.998,\n",
       "    'sadness': 0.002,\n",
       "    'surprise': 0.0},\n",
       "   'blur': {'blurLevel': 'low', 'value': 0.06},\n",
       "   'exposure': {'exposureLevel': 'goodExposure', 'value': 0.57},\n",
       "   'noise': {'noiseLevel': 'low', 'value': 0.0},\n",
       "   'makeup': {'eyeMakeup': True, 'lipMakeup': False},\n",
       "   'accessories': [],\n",
       "   'occlusion': {'foreheadOccluded': False,\n",
       "    'eyeOccluded': False,\n",
       "    'mouthOccluded': False},\n",
       "   'hair': {'bald': 0.03,\n",
       "    'invisible': False,\n",
       "    'hairColor': [{'color': 'blond', 'confidence': 1.0},\n",
       "     {'color': 'gray', 'confidence': 0.61},\n",
       "     {'color': 'brown', 'confidence': 0.4},\n",
       "     {'color': 'red', 'confidence': 0.12},\n",
       "     {'color': 'other', 'confidence': 0.12},\n",
       "     {'color': 'black', 'confidence': 0.01},\n",
       "     {'color': 'white', 'confidence': 0.0}]}}},\n",
       " {'faceId': 'f8e76e10-12c0-4f39-8948-2cd7cf91190c',\n",
       "  'faceRectangle': {'top': 134, 'left': 290, 'width': 79, 'height': 79},\n",
       "  'faceAttributes': {'smile': 0.005,\n",
       "   'headPose': {'pitch': -10.0, 'roll': 12.4, 'yaw': 17.6},\n",
       "   'gender': 'male',\n",
       "   'age': 22.0,\n",
       "   'facialHair': {'moustache': 0.1, 'beard': 0.1, 'sideburns': 0.1},\n",
       "   'glasses': 'NoGlasses',\n",
       "   'emotion': {'anger': 0.0,\n",
       "    'contempt': 0.0,\n",
       "    'disgust': 0.0,\n",
       "    'fear': 0.0,\n",
       "    'happiness': 0.005,\n",
       "    'neutral': 0.982,\n",
       "    'sadness': 0.012,\n",
       "    'surprise': 0.0},\n",
       "   'blur': {'blurLevel': 'low', 'value': 0.17},\n",
       "   'exposure': {'exposureLevel': 'goodExposure', 'value': 0.49},\n",
       "   'noise': {'noiseLevel': 'low', 'value': 0.27},\n",
       "   'makeup': {'eyeMakeup': True, 'lipMakeup': True},\n",
       "   'accessories': [],\n",
       "   'occlusion': {'foreheadOccluded': False,\n",
       "    'eyeOccluded': False,\n",
       "    'mouthOccluded': False},\n",
       "   'hair': {'bald': 0.01,\n",
       "    'invisible': False,\n",
       "    'hairColor': [{'color': 'black', 'confidence': 1.0},\n",
       "     {'color': 'brown', 'confidence': 0.98},\n",
       "     {'color': 'other', 'confidence': 0.23},\n",
       "     {'color': 'gray', 'confidence': 0.17},\n",
       "     {'color': 'red', 'confidence': 0.05},\n",
       "     {'color': 'blond', 'confidence': 0.01},\n",
       "     {'color': 'white', 'confidence': 0.0}]}}},\n",
       " {'faceId': '1d560a88-abaa-4c5e-8d65-4ccb740ed315',\n",
       "  'faceRectangle': {'top': 84, 'left': 552, 'width': 79, 'height': 79},\n",
       "  'faceAttributes': {'smile': 0.0,\n",
       "   'headPose': {'pitch': 4.1, 'roll': -12.5, 'yaw': -25.7},\n",
       "   'gender': 'male',\n",
       "   'age': 20.0,\n",
       "   'facialHair': {'moustache': 0.1, 'beard': 0.1, 'sideburns': 0.1},\n",
       "   'glasses': 'NoGlasses',\n",
       "   'emotion': {'anger': 0.0,\n",
       "    'contempt': 0.0,\n",
       "    'disgust': 0.0,\n",
       "    'fear': 0.0,\n",
       "    'happiness': 0.0,\n",
       "    'neutral': 0.999,\n",
       "    'sadness': 0.001,\n",
       "    'surprise': 0.0},\n",
       "   'blur': {'blurLevel': 'medium', 'value': 0.3},\n",
       "   'exposure': {'exposureLevel': 'goodExposure', 'value': 0.46},\n",
       "   'noise': {'noiseLevel': 'low', 'value': 0.19},\n",
       "   'makeup': {'eyeMakeup': True, 'lipMakeup': True},\n",
       "   'accessories': [],\n",
       "   'occlusion': {'foreheadOccluded': False,\n",
       "    'eyeOccluded': False,\n",
       "    'mouthOccluded': False},\n",
       "   'hair': {'bald': 0.03,\n",
       "    'invisible': False,\n",
       "    'hairColor': [{'color': 'brown', 'confidence': 1.0},\n",
       "     {'color': 'black', 'confidence': 0.69},\n",
       "     {'color': 'red', 'confidence': 0.43},\n",
       "     {'color': 'blond', 'confidence': 0.2},\n",
       "     {'color': 'gray', 'confidence': 0.04},\n",
       "     {'color': 'other', 'confidence': 0.03},\n",
       "     {'color': 'white', 'confidence': 0.0}]}}},\n",
       " {'faceId': 'a32b5663-d968-42c9-b83c-bda4d1d028a7',\n",
       "  'faceRectangle': {'top': 107, 'left': 403, 'width': 77, 'height': 77},\n",
       "  'faceAttributes': {'smile': 0.117,\n",
       "   'headPose': {'pitch': -10.9, 'roll': 19.1, 'yaw': 24.7},\n",
       "   'gender': 'male',\n",
       "   'age': 20.0,\n",
       "   'facialHair': {'moustache': 0.1, 'beard': 0.1, 'sideburns': 0.1},\n",
       "   'glasses': 'NoGlasses',\n",
       "   'emotion': {'anger': 0.0,\n",
       "    'contempt': 0.003,\n",
       "    'disgust': 0.0,\n",
       "    'fear': 0.0,\n",
       "    'happiness': 0.117,\n",
       "    'neutral': 0.878,\n",
       "    'sadness': 0.0,\n",
       "    'surprise': 0.001},\n",
       "   'blur': {'blurLevel': 'low', 'value': 0.0},\n",
       "   'exposure': {'exposureLevel': 'goodExposure', 'value': 0.52},\n",
       "   'noise': {'noiseLevel': 'low', 'value': 0.0},\n",
       "   'makeup': {'eyeMakeup': True, 'lipMakeup': True},\n",
       "   'accessories': [],\n",
       "   'occlusion': {'foreheadOccluded': False,\n",
       "    'eyeOccluded': False,\n",
       "    'mouthOccluded': False},\n",
       "   'hair': {'bald': 0.04,\n",
       "    'invisible': False,\n",
       "    'hairColor': [{'color': 'black', 'confidence': 1.0},\n",
       "     {'color': 'brown', 'confidence': 0.91},\n",
       "     {'color': 'other', 'confidence': 0.43},\n",
       "     {'color': 'gray', 'confidence': 0.22},\n",
       "     {'color': 'red', 'confidence': 0.02},\n",
       "     {'color': 'blond', 'confidence': 0.01},\n",
       "     {'color': 'white', 'confidence': 0.0}]}}}]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'NoGlasses'"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[0]['faceAttributes']['glasses']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.0"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[0]['faceAttributes']['smile']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'color': 'blond', 'confidence': 1.0},\n",
       " {'color': 'gray', 'confidence': 0.61},\n",
       " {'color': 'brown', 'confidence': 0.4},\n",
       " {'color': 'red', 'confidence': 0.12},\n",
       " {'color': 'other', 'confidence': 0.12},\n",
       " {'color': 'black', 'confidence': 0.01},\n",
       " {'color': 'white', 'confidence': 0.0}]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[0]['faceAttributes']['hair']['hairColor']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "19.0"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[0]['faceAttributes']['age']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'male'"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[0]['faceAttributes']['gender']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "face_01=dict(glasses='NoGlasses',smile='0.0',hairColor=[{'color': 'blond', 'confidence': 1.0},\n",
    " {'color': 'gray', 'confidence': 0.61},\n",
    " {'color': 'brown', 'confidence': 0.4},\n",
    " {'color': 'red', 'confidence': 0.12},\n",
    " {'color': 'other', 'confidence': 0.12},\n",
    " {'color': 'black', 'confidence': 0.01},\n",
    " {'color': 'white', 'confidence': 0.0}],age='19.0',gender='male')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'glasses': 'NoGlasses',\n",
       " 'smile': '0.0',\n",
       " 'hairColor': [{'color': 'blond', 'confidence': 1.0},\n",
       "  {'color': 'gray', 'confidence': 0.61},\n",
       "  {'color': 'brown', 'confidence': 0.4},\n",
       "  {'color': 'red', 'confidence': 0.12},\n",
       "  {'color': 'other', 'confidence': 0.12},\n",
       "  {'color': 'black', 'confidence': 0.01},\n",
       "  {'color': 'white', 'confidence': 0.0}],\n",
       " 'age': '19.0',\n",
       " 'gender': 'male'}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "face_01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'NoGlasses'"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[1]['faceAttributes']['glasses']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.005"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[1]['faceAttributes']['smile']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'color': 'black', 'confidence': 1.0},\n",
       " {'color': 'brown', 'confidence': 0.98},\n",
       " {'color': 'other', 'confidence': 0.23},\n",
       " {'color': 'gray', 'confidence': 0.17},\n",
       " {'color': 'red', 'confidence': 0.05},\n",
       " {'color': 'blond', 'confidence': 0.01},\n",
       " {'color': 'white', 'confidence': 0.0}]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[1]['faceAttributes']['hair']['hairColor']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "22.0"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[1]['faceAttributes']['age']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'male'"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[1]['faceAttributes']['gender']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "face_02=dict(glasses='NoGlasses',smile='0.005',hairColor=[{'color': 'black', 'confidence': 1.0},\n",
    " {'color': 'brown', 'confidence': 0.98},\n",
    " {'color': 'other', 'confidence': 0.23},\n",
    " {'color': 'gray', 'confidence': 0.17},\n",
    " {'color': 'red', 'confidence': 0.05},\n",
    " {'color': 'blond', 'confidence': 0.01},\n",
    " {'color': 'white', 'confidence': 0.0}],age='22.0',gender='male')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'glasses': 'NoGlasses',\n",
       " 'smile': '0.005',\n",
       " 'hairColor': [{'color': 'black', 'confidence': 1.0},\n",
       "  {'color': 'brown', 'confidence': 0.98},\n",
       "  {'color': 'other', 'confidence': 0.23},\n",
       "  {'color': 'gray', 'confidence': 0.17},\n",
       "  {'color': 'red', 'confidence': 0.05},\n",
       "  {'color': 'blond', 'confidence': 0.01},\n",
       "  {'color': 'white', 'confidence': 0.0}],\n",
       " 'age': '22.0',\n",
       " 'gender': 'male'}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "face_02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'NoGlasses'"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[2]['faceAttributes']['glasses']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.0"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[2]['faceAttributes']['smile']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'color': 'brown', 'confidence': 1.0},\n",
       " {'color': 'black', 'confidence': 0.69},\n",
       " {'color': 'red', 'confidence': 0.43},\n",
       " {'color': 'blond', 'confidence': 0.2},\n",
       " {'color': 'gray', 'confidence': 0.04},\n",
       " {'color': 'other', 'confidence': 0.03},\n",
       " {'color': 'white', 'confidence': 0.0}]"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[2]['faceAttributes']['hair']['hairColor']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "20.0"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[2]['faceAttributes']['age']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'male'"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[2]['faceAttributes']['gender']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [],
   "source": [
    "face_03=dict(glasses='NoGlasses',smile='0.0',hairColor=[{'color': 'brown', 'confidence': 1.0},\n",
    " {'color': 'black', 'confidence': 0.69},\n",
    " {'color': 'red', 'confidence': 0.43},\n",
    " {'color': 'blond', 'confidence': 0.2},\n",
    " {'color': 'gray', 'confidence': 0.04},\n",
    " {'color': 'other', 'confidence': 0.03},\n",
    " {'color': 'white', 'confidence': 0.0}],age='20.0',gender='male')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'glasses': 'NoGlasses',\n",
       " 'smile': '0.0',\n",
       " 'hairColor': [{'color': 'brown', 'confidence': 1.0},\n",
       "  {'color': 'black', 'confidence': 0.69},\n",
       "  {'color': 'red', 'confidence': 0.43},\n",
       "  {'color': 'blond', 'confidence': 0.2},\n",
       "  {'color': 'gray', 'confidence': 0.04},\n",
       "  {'color': 'other', 'confidence': 0.03},\n",
       "  {'color': 'white', 'confidence': 0.0}],\n",
       " 'age': '20.0',\n",
       " 'gender': 'male'}"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "face_03"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'NoGlasses'"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[3]['faceAttributes']['glasses']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.117"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[3]['faceAttributes']['smile']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'color': 'black', 'confidence': 1.0},\n",
       " {'color': 'brown', 'confidence': 0.91},\n",
       " {'color': 'other', 'confidence': 0.43},\n",
       " {'color': 'gray', 'confidence': 0.22},\n",
       " {'color': 'red', 'confidence': 0.02},\n",
       " {'color': 'blond', 'confidence': 0.01},\n",
       " {'color': 'white', 'confidence': 0.0}]"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[3]['faceAttributes']['hair']['hairColor']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "20.0"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[3]['faceAttributes']['age']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'male'"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results[3]['faceAttributes']['gender']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [],
   "source": [
    "face_04=dict(glasses='NoGlasses',smile='0.117',hairColor=[{'color': 'black', 'confidence': 1.0},\n",
    " {'color': 'brown', 'confidence': 0.91},\n",
    " {'color': 'other', 'confidence': 0.43},\n",
    " {'color': 'gray', 'confidence': 0.22},\n",
    " {'color': 'red', 'confidence': 0.02},\n",
    " {'color': 'blond', 'confidence': 0.01},\n",
    " {'color': 'white', 'confidence': 0.0}],age='20.0',gender='male')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'glasses': 'NoGlasses',\n",
       " 'smile': '0.117',\n",
       " 'hairColor': [{'color': 'black', 'confidence': 1.0},\n",
       "  {'color': 'brown', 'confidence': 0.91},\n",
       "  {'color': 'other', 'confidence': 0.43},\n",
       "  {'color': 'gray', 'confidence': 0.22},\n",
       "  {'color': 'red', 'confidence': 0.02},\n",
       "  {'color': 'blond', 'confidence': 0.01},\n",
       "  {'color': 'white', 'confidence': 0.0}],\n",
       " 'age': '20.0',\n",
       " 'gender': 'male'}"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "face_04"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
